package com.sky.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.entity.AddressBook;
import com.sky.result.Result;

import java.util.List;

/**
 * <p>
 * 地址簿 服务类
 * </p>
 *
 * @author xieminghui
 * @since 2023-11-28
 */
public interface IAddressBookService extends IService<AddressBook> {

    Result<List<AddressBook>> findList();

    Result<String> saveAddress(AddressBook addressBook);

    Result<AddressBook> findOneAddress(Long o);

    Result<String> updateDefaultAddress(AddressBook addressBook);

    Result<String> deleteAddress(Long id);

    Result<String> updateAddress(AddressBook addressBook);
}
